package com.itheima.stock.config;


import com.itheima.stock.cache.Cache;
import com.itheima.stock.cache.impl.RedisCache;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * PasswordEncoderConfiguration
 *
 * @author DanLi
 * @date 2025/7/13
 * redis配置类
 */
@Configuration
public class RedisConfiguration {

    @Bean
    public Cache cache(StringRedisTemplate redisTemplate){
        return new RedisCache(redisTemplate);
    }

}
